31b69479bda445ce020bc1af8efab7e6d3da31f3,gt-fhir-entities/src/main/java/edu/gatech/i3l/fhir/dstu2/entities/DrugExposurePrescriptionWritten.java,DrugExposurePrescriptionWritten,getRelatedResource,#,241

Before Change


		
		resource.setDispense(dispense);
		/* End Setting Dispense */
		resource.setEncounter(new ResourceReferenceDt(this.visitOccurrence.getIdDt()));
		resource.setPatient(new ResourceReferenceDt(this.person.getIdDt()));
		if(this.relevantCondition != null)
			//FIXME the reference above doesn't corresponde to a ResourceEntity; it should be a reference to Resource Condition

After Change


		
		resource.setDispense(dispense);
		/* End Setting Dispense */
		resource.setEncounter(new ResourceReferenceDt(new IdDt(VisitOccurrence.RESOURCE_TYPE, this.visitOccurrence.getId())));
		resource.setPatient(new ResourceReferenceDt(new IdDt(Person.RESOURCE_TYPE, this.person.getId())));
		if(this.relevantCondition != null)
			//FIXME the reference above doesn't corresponde to a ResourceEntity; it should be a reference to Resource Condition